using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;


namespace objetos
{

    [Serializable]

	#region TB_SERVICO
	/// <summary>
	/// This object represents the properties and methods of a TB_SERVICO.
	/// </summary>
    public class OBJ_TB_SERVICO : IComparable<OBJ_TB_SERVICO>
	{
		#region Construtor
		public OBJ_TB_SERVICO() {}
		#endregion
		
		#region Public Properties
		
		private int _id;
		private string _desc_servico = String.Empty;
		private bool _sit_ativo;
		
		public int id
		{
			get {return _id;}
			set {_id = value;}
		}

        public string desc_servico
		{
            get { return _desc_servico; }
            set { _desc_servico = value; }
		}

		public bool sit_ativo
		{
			get {return _sit_ativo;}
			set {_sit_ativo = value;}
		}

     
		#endregion


        public int CompareTo(OBJ_TB_SERVICO other)
        {
            if (this.desc_servico == other.desc_servico)
            {
                return this.desc_servico.CompareTo(other.desc_servico);
            }
            return other.desc_servico.CompareTo(this.desc_servico);
        }
    }
	#endregion
}

